package com.jgy.juc.callnable;

import java.util.concurrent.Callable;

/**
 * @author 姜光远
 * @date 2023/3/4 17:06
 */
public class Callable_light implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum = 0;
        for (int i = 0; i < 100; i++) {
            sum = sum+i;
        }
        return sum;
    }
}
